Google’s parent company, Alphabet, which went on a hiring spree during the pandemic, revealed Friday that it will lay off 12,000 employees.