what you have inferred is the right one. but also let me tell you something about english grammar.
whenever you see such a sentence when two things are being said about two things earlier mentioned, the first one always corresponds with the first one, and the second one with the second one, unless mentioned otherwise.
President James Monroe made himself for two things: Monroe Doctrine and the Missouri compromise;One permanent and the other a very temporary measure
so Monroe doctrine(1)... Missouri compromise(2).... permanent(1).....temporary(2)