Mr. Thomas agreed to repay $300,000 to the District after the city’s attorney general filed a $1 million lawsuit against him earlier this year for funding lavish trips and a luxury vehicle with public funds earmarked for youth baseball.