 Lewis was involved in the drafting and passage of "An Act for the Gradual Abolition of Slavery" in 1780.This legislation was the first legal action towards the abolition of slavery in the United States of America.Lewis received a recess appointment from President George Washington on July 14, 1791, to a seat on the United States District Court for the District of Pennsylvania vacated by Judge Francis Hopkinson.