Russia invaded a sovereign country. Period.
Europe and everyone else is entirely justified under international law to provide assistance to Ukraine to defend itself.
Regarding your edit, Russia doesn't have the right to dictate neighbouring countries which alliances they can form. What you're doing here is denying Ukraine its sovereignty, just like Russia does.