The advice that Machiavelli gave the princess regarding the princess was the end justify the means.
And a ruler can do anything that will promote the power of the states, including using religion.
Separation of power, by making different branches he is dividing the power of the government into groups so that the different branches all work on seperate things and have there different places and parts in the government and it's decisions