The bill, approved on a vote of 333-87, would further restrict public benefits for illegal immigrants, increase penalties for smugglers and document counterfeiters, and boost border enforcement by adding 5,000 more agents and 14 miles of triple fencing near San Diego.