HONOLULU—A former Hawaii lawmaker was sentenced Thursday to two years in prison in a federal corruption case that’s drawn attention to a perennial problem in the islands: the tens of thousands of cesspools that release 50 million gallons of raw sewage into the state’s pristine waters every day. Cesspools—in-ground pits that collect sewage from houses…