Judicial branch can check both legislative and executive branch by declaring laws as unconstitutional. For example, when Trump did the travel ban a federal judge was able to overturn it.
I personally believe it’s ok because we can all have a different opinion. And also there morals from back then were VERY different compared to morals from our days. So it’s normal that we judge there morals and actions.
My answer made sense in my head, so I hope it makes sense to you!
LOL