Trump withdrawal from bedrock UN climate treaty raises legal questions