The UK has joined the US in snubbing an international AI agreement.