The Trump administration is close to announcing a compromise over the fate of undocumented immigrants who were brought to the United States as young children.