Weren’t the British planning to invade Norway themselves and Germany basically beat them to it (by only a few days)?
Yes. The Brit counter-invasion at Narvik used what forces they'd already assembled for their own Norwegian campaign. The British reason for invading was to deny the Germans Swedish iron (shipped via Norway) and to achieve complete domination of the North Sea. The Germans invaded to forestall the British move.