Executive order effective retroactive to 9/11 that activates section 329 of the Immigration and Nationality Act that does exactly that.
https://www.federalregister.gov/documents/2002/07/08/02-17273/expedited-naturalization-of-aliens-and-noncitizen-nationals-serving-in-an-active-duty-status-during