Three federal courts have blocked a state law requiring government contractors to certify that they are not engaged in boycotts of Israel or companies that do business in Israel or territories controlled by Israel, ruling that the law violates the First Amendment.