President Trump pardoned two U.S. service members accused of war crimes Friday and restored the rank of a third who was charged with posing for a picture with the corpse of an enemy combatant in Iraq, but was acquitted of murder.

One of the men Trump pardoned, Army 1st Lt. Clint Lorance, is currently in the sixth year of a 19-year sentence for ordering his soldiers to open fire on three unarmed men in Afghanistan, killing two of them. Meanwhile, Army Maj. Matthew Golsteyn was awaiting trial for allegedly murdering a suspected Afghan bombmaker in 2010 before Trump granted clemency, and Special Warfare Operator Chief Edward Gallagher, a 15-year Navy SEAL, will have his rank restored after he was docked for the photograph.

Some Pentagon and military officials, including Defense Secretary Mark Esper had reportedly urged Trump not to intervene in the cases, or at least consider holding off, but he didn't take that advice. But while his decision may be controversial, it is within his powers to grant clemency, as the Defense Department acknowledged Friday evening. "The Department of Defense has confidence in the military justice system," Pentagon spokesman Jonathan Hoffman said. "The president is part of the military justice system as the commander-in-chief and has the authority to weigh in on matters of this nature." Read more at NPR and Fox News. Tim O'Donnell