Bill brings end to nearly 140 years of compulsory military service