The U.S. military on Thursday opened a new chapter in how it investigates and prosecutes cases of sexual assault and other major crimes, putting independent lawyers in charge of those decisions and sidelining commanders after years of pressure from Congress.

The change, long resisted by Pentagon leaders, was finally forced by frustrated members of Congress who believed that too often commanders would fail to take victims’ complaints seriously or would try to protect alleged perpetrators in their units.