Ruling could transform US policy on birthright citizenship, or limit federal judge's ability to curtail Trump.