The House has approved legislation to raise the federal minimum wage for the first time in a decade, to $15 an hour.