Until the Democratic takeover , he was chairman of the appropriations subcommittee on energy and water development , and routinely added millions in financing for the Sandia and Los Alamos facilities in New Mexico .