The US Congress passed Selective Service Act.

This act mandated a military draft for all males aged 18 to 30 to register to potentially be chosen for military service. Approximately 2.8 million ended up being drafted into World War I.

Source