AI software stocks rally up to 8% as investor confidence returns