SALEM (AP) — Courts would be required to consider veterans’ military backgrounds during criminal sentencing hearings under a bill passed unanimously Monday by the Oregon Senate.

The measure, which now moves to the House, gives judges the authority to impose more lenient sentences on veterans, especially those suffering from combat-related mental illnesses such as post-traumatic stress disorder or traumatic brain injury.