Senate signs off on end to offshore-drilling ban