Google secretly gave Facebook perks, data in ad deal, U.S. states allege