What were the main problems faced by the unions during the 1800s and how did they overcome them?