A country hit made by artificial intelligence has climbed to the top of a Billboard chart - a first for the genre.