Apple came close but couldn’t get there, failing to close at the level it needed to reach to make the milestone for the first time.