One thing you can use - cast to remove const
const UClass* constPtr;
auto notConstPtr = const_cast(constPtr);
GetWorld()->SpawnActor(notConstPtr);
In common case, it is rather tricky to execute all the logic of SpawnActor with NewObject<> because of internal flags and scope parent links.