West Indies clinched a thrilling eight-run victory over Australia, marking their first Test win on Australian soil in nearly three decades.