US stocks end slightly higher as inflation comes in as expected