Elon Musk has signalled Grok will comply with Australian laws after receiving backlash that the AI chatbot was being used to nudify women and girls.