A federal judge has blocked an executive order from President Donald Trump over birthright citizenship.