Even if it had been occupied by the US for 300 years, I (a US citizen) would be angry with my government if it didn't use military force to stop Canada (or Mexico) from forming a military alliance with Russia (or China) (provided diplomatic avenues had been exhausted). Letting such an alliance persist and flourish would permanently drastically degrade the security of the US.