A federal judge in Maryland has issued a nationwide preliminary injunction against President Donald Trump's executive order aimed at ending birthright citizenship.