WASHINGTON — An immigration bill pitched as a compromise between conservative and moderate Republicans would make sweeping changes to the United States’ immigration system while establishing a special visa program that would give young undocumented immigrants the chance to become citizens based on factors like employment and education.

The draft bill, circulating among lawmakers on Thursday afternoon and up for a vote next week, closely adheres to President Trump’s vision for an immigration overhaul. In addition to protecting the young immigrants, it provides billions of dollars for a wall on the southwest border while imposing new limits on legal immigration.

The bill would also toughen rules for asylum seekers. And it would address the separation of children from parents under the Trump administration’s crackdown on illegal border crossings by mandating that families be kept together while in the custody of the Department of Homeland Security, according to a summary of the measure.

In effect, the measure would offer Democrats and immigration moderates in the Republican Party a difficult choice: accept hard-line changes to much of the immigration system in exchange for protections for young undocumented immigrants and what appears to be a modification of the wrenching policy of splitting up families at the border.