A legal future for climate refugees begins to take shape