I believe it was purely for reasons of expansion. I don’t know exactly what our response should have been, but we need to at least acknowledge that Ukraine is defending their sovereignty and Putin/Russia are the aggressors. We should support them at least minimally.
And if it worked for both of them, why would they stop there?