In the Snap drop-down menu choose the Snap To Vertex and Snap With Active options.
Make a duplicate of the vertex Shft+D at the lower end of the slope. This will be used as the active vertex when snapping.
Shft select the two vertices of the edge to be moved and then add the duplicated vertex to the selection. (The last vertex will become the active vertex).
G Z (to confine movement to along the Z axis) and while holding down the Ctrl key, (this is the shortcut key that temporarily enables snapping) move the mouse cursor towards the vertex at the upper end of the slope until a little orange circle surrounds this vertex indicating that the active vertex is snapped to its Z hight. Validate with LMB.
Select the the duplicated vertex and delete it.