From Canada to Ukraine, populations rally behind leaders seeking to fend off the US president’s threats