President Donald Trump and Secretary of Defense Pete Hegseth are asking the Supreme Court to allow the military to ban transgender service members. File Photo by Bonnie Cash/UPI | License Photo

Aug. 28 (UPI) -- The Trump administration on Friday asked the Supreme Court to allow the Pentagon to ban transgender individuals from serving in the military.

A federal appeals court ruled in June that the military's attempts to remove transgender Americans was "both arbitrary and based upon animus."

On Friday, Solicitor General John D. Sauer appealed to the country's top court to reverse the ruling.

"The court asserted that the policy likely denies equal protection because it reflects invidious discrimination against trans-identifying people," Sauer wrote in his petition. "That gravely erroneous holding warrants this Court's review."