Crude oil futures trim gains as dollar pushes higher