The blockade started after the rockets. And how can US and Israel overrule elections in Gaza? Fatah wanted a coup because they lost to Hamas. That’s why there’s no election in the West Bank.
On rocket attacks, Hamas was sticking relatively well to the ceasefire (again, talking about Hamas, not other groups). The blockade was tightened by Israel post-takeover, which then lead to a resumption of rocket attacks.