Donald Trump has suffered a fresh court setback after a federal judge blocked his latest effort to restrict birthright citizenship in the United States.