Painful hacks lead to Senate passage of controversial cybersecurity bill