Why does Hamilton believe the judiciary will be the least threat to constitutional rights

Hamilton believed that the judiciary would be the least threat to constitutional rights because he believed that the judiciary would have neither the power of the purse (like the legislative branch) nor the power of the sword (like the executive branch). In other words, he believed that the judiciary's role was to interpret and apply the law, rather than to make or enforce it. Additionally, Hamilton believed that the judiciary would be the branch of government least likely to succumb to the passions or whims of the majority, as judges would be appointed for life and could therefore act independently and impartially. Finally, Hamilton believed that the judiciary's power of judicial review, which allows it to declare laws unconstitutional, would serve as a check on the other branches of government and help to protect constitutional rights.