They had the powers just like any ruler has. To enforce laws and decide the matters of the whole ummah. Rasool Allah was a Nabi and they were not. They were Rulers.