The US embassy calls it a ‘deeply regrettable’ move that runs counter to a 2012 agreement on detainees.