The House approved the infrastructure bill as Democrats made progress on their broader social safety net and climate plan.