Universities minister resigns over May’s Brexit deal