Its 2021 battery investment was a show of confidence when other foreign investors were avoiding the UK after Brexit led to years of uncertainty around the country’s trading relationships.