if you measure the energy of a free particle you will still get a value right? And won't this energy necessarily correspond to one of the infinite solutions for the free particle?
No, when you measure the energy of a (not necessarily free) particle you find an interval of values due to the finite precision of every measurement apparatus.
If you know that the energy is discrete (when the system is not free) and the precision of the instrument is smaller than the distance of two consecutive levels, then you can argue that you found a definite value of the energy and that the post measurment state is represented by the corresponding (proper) eigenstate of the energy observable.
When instead the energy is continuous, then you cannot argue anything in addition to that the energy stays in some $[a,b]$. In particular the energy is not definite.
A problem arises here concerning the post measurment state. The abstract idea is stated within the Luders-von Neumann postulate. It states that, if the state before measurment is the normalized wavefunction $\psi$ and the outcome interval is $[a,b]$, then the post-measurment state is $P^{(H)}_{[a,b]} \psi$ (up to normalization). Here, $P^{(H)}_{[a,b]}$ is the orthogonal projector associated to $[a,b]$ of the spectral measure of the energy observable $H$, the unique satisfying
$$H = \int_{\mathbb{R}}\lambda dP^{(H)}_{\lambda}\:,$$
that is the general extension of the eigenvector decomposition
$$H = \sum_{n} E_n P^{(H)}_{E_n}\:, \quad P^{(H)}_{E_n} = |\psi_{E_n}\rangle\langle \psi_{E_n}|$$
when the spectrum of $H$ is a point spectrum of energies $E_1\leq E_2 \leq \cdots$.
This general assumption is nowadays sometimes considered a bit too ideal and a better idea on the post-measurment state relies on a more concrete description of the measurement apparatus in terms of quantum operations (mathematically speaking, POVMs and their Kraus decompositions).
These observations can be ascribed to every observable with a continuous part of the spectrum.
It is true that it is comfortable to deal with various types of plane waves which mimic definite energy (and also momentum) states. But these objects are not normalizable wavefunctions, so that they do not define physical quantum states. However they are useful limit ideas fruitfully exploited in various computations.