The most likely explanation for what law means in this line would be limit or restriction.
The poem "The Haunted Palace" is a ballad — a poem or song that tells a story, often one of tragedy. In the ballad, the haunted house represents the exact thing that the house of Usher does: an ancestral home and name fallen into mental and physical decline.