The $634 billion bill provides money to keep the government running until the next president takes office.
The low-interest loans for automakers are intended to help the companies develop technologies and retool factories to meet new standards for cleaner, more fuel-efficient cars.
Republicans say ending the drilling ban should lower gasoline prices. Democrats say it won't mean additional oil production for years.