The Trump administration has suffered another loss in court, with a judge striking down the US president's executive order on birthright citizenship rights.