Spain stormed back from a 17-point deficit in the final quarter on Sunday to stun Poland in the bronze medal game of the European Championships and qualify for the Olympics for the first time in their history.