A U.S. Marine whose adoption of an Afghan war orphan has spurred a yearslong legal battle and raised alarms at the highest levels of government will stay in the Marine Corps