The check that the Judicial Branch has over the Legislative Branch is:
They can declare a law unconstitutional.
This power, known as judicial review, allows the courts to invalidate laws passed by the legislature if they are found to violate the Constitution.