How are laws passed?

It is a bill that gets processed by the legislative branch then if agreed with the law it gets passed up to the supreme court. If disagreed with it, it is sent back to the legislative branch. Agree again, it's sent to the president. If he signs, it becomes a law, if he rips it, it is called a veto and it doesn't become a law.

P.S. If the legislative branch disagrees with the law it is not a bill anymore

P.S.S. If the supreme court agrees with it firsthand, it is sent to the president to be signed or vetoed
by judge