Facebook is illegally collecting user data, court rules