A federal court has ordered the US government to allow up to 55,000 people from across countries to apply for Green Card.