Cristiano Ronaldo scored a 94th-minute penalty as Real Madrid beat Elche 2-1, while Sevilla and Valencia also won.