The bill would generally bar purchases of homes that are more than 5 years old by people who are not U.S. citizens and legal residents, as well as companies and trusts controlled by nonresident aliens.