The Supreme Court has ruled to curb the ability of federal district judges to block Donald Trump's policies nationwide in a case about birthright citizenship.