The first-in-the-nation legislation, called the Elvis Act, is designed to protect musicians from artificial intelligence.