The Spanish government will invest €400m to build a 17.5km new line that will enable high-speed services to run directly from Madrid to Jaén in Andalucía.