Celtic defender Anthony Ralston played the entire match as Scotland saw off Croatia to claim a vital Nations League victory.