legislates