Sweeping bill clears final vote.