A judge has ruled that the fast-food chain must face a lawsuit that its Whopper sandwich appears larger on menu boards than in real life.