Rugby World Cup: Scotland survive Samoa struggle to reach quarters