Complex sentence: Morton was elected as a Republican to the 46th and 47th Congresses, serving from March 4,1879, until his resignation, effective March 21,1881.
Split into simpler sentences: Morton was elected, as a Republican, to the 46th and 47th Congresses. He served from March 4,1879, until his resignation, effective March 21,1881.