A Boston federal judge on Tuesday rejected what he called an “imaginative and novel” effort by a former Massachusetts politician to dismiss charges of lying to get COVID-19 relief funds and underreporting income on his taxes.