For the first time, a microbial fuel cell has generated electricity while cleaning wastewater, a development that could make sewage treatment more affordable for both industrialized and developing nations, researchers said.