House passes reauthorization of key US surveillance program after days of upheaval over changes