Bayer Leverkusen's 2-1 Bundesliga victory over Hoffenheim last week will stand despite their 'phantom goal', a court has ruled.