EU court says customers can resell used software