A federal judge in Washington, D.C., on Wednesday blocked the Trump administration's latest effort to restrict birthright citizenship for the children of international workers born in the United States, according to a newly filed ruling.

D.C. District Judge Christopher Cooper, an appointee of former President Barack Obama, granted a request for a preliminary injunction blocking President Donald Trump's executive order earlier this year that came in the wake of the Supreme Court's ruling that struck down Trump's push to formally end birthright citizenship.

Trump aimed to do away with birthright citizenship altogether in an executive order he signed on the first day of his second term last year.