A US federal judge has blocked the enforcement of a new executive order limiting the number of people eligible for birthright citizenship.