In a dramatic diplomatic breakthrough, Hamas has accepted a U.S.-brokered peace plan led by President Donald Trump.