Hearts were broken as Wales booked their place in Qatar, their first World Cup appearance in over half a century.