Belgium's spectacular escape from the World Cup was sealed by a controversial late penalty awarded to Senegal.