Employers are required to declare to the Department of Labor that hiring foreigners on the visas will not adversely affect the working conditions of U.S. workers similarly employed.
Disney has outsourced the IT functions. Disney didn't hire the foreigners, they are employees of the outsourcing company. Disney is laying off its own people and not replacing them with anyone. And I'm sure the outsourcing company didn't displace any U.S. workers it might have had when it brought the H-1Bs in from India for the turnover. All nice and legal under the laws currently in place.