British Prime Minister Theresa May has offered to resign if parliament can get her Brexit deal across the finish line in the coming days.