Judge sides with activists in firstof- its-kind climate change trial