The sequence 体は小さいけれど元気 functions as an adjectival block which modifies 一寸法師. 体は小さいけれど元気な一寸法師 is object of the verb 気に入り, in turn. 大臣は is it's subject of course. So, the whole sentence has a nested structure, and the two は belong to different levels.