The United States and Britain have agreed on a technology pact to boost ties in AI, quantum computing and civil nuclear energy, with top US firms led by Microsoft pledging 31 billion pounds ($42 billion) in UK investments.