President Donald Trump is set to unveil his first National Security Strategy next Monday.
Akayed Ullah posted a statement on his Facebook account just before the Monday morning attack.
The motions argued that moving ahead on transgender recruits would "place extraordinary burdens on our armed forces."
So what's in the legislation for you? Here's a rundown of the top changes.
It was not immediately clear whether the Trump administration would appeal the ruling.