A Japanese court has reportedly ordered the government to pay compensation for a Toyota worker's death from overwork.