Washington takes stake in company building one of the world’s largest lithium mines as it races to catch up with China