A new state law mandates that oil companies put up money to plug wells before acquiring them. It could fail its first big test, putting taxpayers on the hook. In recent years, California has passed new laws to tackle the enormously expensive remediation of old oil wells, which pose hazards for human health and the climate.