The legislation would ban oil and gas drilling on both coasts of the U.S., in the Arctic National Wildlife Refuge and in the Eastern Gulf of Mexico.