Scottish research laboratories are set to benefit from £10 million in funding for a European mission to deploy spacecraft which will measure ripples in the fabric of spacetime.