Prime Minister Theresa May has vowed to work with "humility and resolve" as the government prepares to outline its legislative program on Wednesday.