Progressive lawmaker Ed Markey defeats moderate rival more than three decades younger