A Japanese town has been ordered to pay almost 11m yen (£57,000) in overtime to public servants compelled to start work five minutes early each day.