Rebuffing strong opposition from industry, California on Thursday adopted a landmark rule requiring more than half of all trucks sold in the state to be zero-emissions by 2035, a move that is expected to improve local air quality, rein in greenhouse gas emissions and sharply curtail the state’s dependence on oil.