EBay’s slightly better-than-expected quarterly earnings were no match for a weaker sales outlook.