This is just not true. Yes the SCOTUS ruled that it had the right to judicial review, because that's what the constitution said it had the power to do. This isn't "granting itself that power" anymore than Congress granted itself the power to pass laws or the president granting themselves the power to execute laws.