Biden hoped his final APEC and G20 summits as president would be a capstone to his foreign policy career. Instead, he faces questions about Trump’s return.