Spanish banks, including Banco Popular Espanol SA and Banco Bilbao Vizcaya Argentaria SA, may have to give back billions of euros to mortgage customers after a final ruling by the European Union’s top court. Bank shares tumbled by as much as 10 percent.