Hello, friend! "It's" is a contraction, usually for "it is" or "it has." "Its" is the possessive form of "it," just like "hers" and "his." "Its" is used to show that something is owned by "it." In this case, the laws belong to the universe, so you want the possessive form: "for violating its laws."
Thanks for reading!