While anti-BDS laws are a violation of US citizens rights, they don't cover this case. It's not "illegal" for Google to not do business with Israel. These are state level laws targeting US business that say they can't get state contracts if they oppose Israel.