The government didn’t formally inspect a crucial pipeline for years. Then came the safety concerns