The Supreme Court has the ultimate rulling on constitutional matters.
The supreme court can veto (overthrow) laws passed by the executive branch (the president) if they are found unconstitutional.