Great Britain will face New Zealand in the America’s Cup semi-final on Sunday after finishing third in qualifying.