Italy got their first win in the 2024 Women's Six Nations as they saw off an Irish comeback to take the 27-21 victory in round two.