Court rejects Trump bid to end lawsuit over solar and wind policies