Nuclear-matter equation of state with consistent two- and three-body perturbative chiral interactions