Measurement-based quantum computation in a two-dimensional phase of matter