French senate adopts controversial spy bill