This phase III trial studies how well the combination of pembrolizumab, paclitaxel and carboplatin works compared with paclitaxel and carboplatin alone in treating patients with endometrial cancer that is stage III or IV, or has come back (recurrent).