I give a lot of the blame to the government of Israel because it seems (according to the Trump administration) there was no real reason to attack except for Israel was going to attack and we would become targets if they did.

High ranking people in Trump's own administration (or at least until very recently) have openly stated Israel was the main reason why we got involved.

Sure seems to me in terms of our current situation, Israel really wanting to get involved in a strike is the but-for cause. At least according to what the Trump administration has stated.