Video game giants agree to AI rules in new labor contract