The writer has chosen to create a dependent nonfinite clause, which more clearly indicates that the blocking is a result of the attack. Your version is also OK here, and 'to' is optional, since it is a parallel structure. In your version, the attacking and the blocking are two actions both caused by the change but not necessarily otherwise related.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.