As the state grapples with a court order requiring more money to be spent on New York City schools , an assemblyman from Manhattan yesterday attacked another aspect of the state 's school-financing formulas , saying that city schools have been cheated out of $ 340 million in state lottery money since 2000 .