The U.S. oil industry has laid off thousands of workers and cut billions in spending due to lower oil prices and the biggest consolidation in a generation, in what could mark the end of the rapid output growth that made the U.S. the world’s top producer.