Companies can be held liable for climate damages, German court rules