A new bill, signed into law on June 29, could persuade film and TV projects to take their business elsewhere. Legislators with ties to entertainment are scrambling for a solution.