Civil liberties, privacy groups cry foul as PM hails historic border deal