Intel Corp.’s earnings fell last quarter as the company ramped up spending on new facilities and products, part of Chief Executive Officer Pat Gelsinger’s efforts to revive the semiconductor giant’s fortunes.