Current loops, phase transitions, and the Higgs mechanism in Josephson-coupled multicomponent superconductors