Fillon used a total of $1m in public funds to pay his wife and children for work they never performed, a court says.