Allah SWT granted Prophet Sulaiman's prayer and gave him the kingdom. Solomon's ambition to gain power or empire was the ambition that was in a prophet, and certainly the ambitions of the prophets were not related except to the truth.
The ambition is to facilitate the spread of da'wah on the earth.