VIENNA (Reuters) - EU countries can under some circumstances collect a levy on blank recording media as a tool to ensure artists get fair rewards for their work, a levy that Amazon.com Inc had fought, the European Court of Justice ruled on Thursday.